package com.dhcc.bpm.modules.gateway.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.bpm.modules.gateway.entity.ResponseCode;
import com.dhcc.bpm.modules.gateway.mapper.ResponseCodeMapper;
import com.dhcc.bpm.modules.gateway.service.IResponseCodeService;
import com.dhcc.bpm.modules.gateway.vo.ResponseCodeVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 返回码管理表 服务实现类
 * </p>
 *
 * @author xiafayu
 * @since 2021-05-06
 */
@Service
public class ResponseCodeServiceImpl extends ServiceImpl<ResponseCodeMapper, ResponseCode> implements IResponseCodeService {
    @Autowired
    private ResponseCodeMapper responseCodeMapper;
    @Override
    public IPage<ResponseCodeVO> selectResponseCodePage(IPage page, ResponseCodeVO responseCode) {
        return page.setRecords(responseCodeMapper.selectResponseCodePage(page, responseCode));
    }

    @Override
    public int updateRefreshStatus() {
        return responseCodeMapper.updateRefreshStatus();
    }
}
